home *** CD-ROM | disk | FTP | other *** search
/ PC World 2000 May / PCWorld_2000-05_cd.bin / Software / TemaCD / povray / povwin3.exe / %MAINDIR% / Insert Menu / Shapes / polynomial.txt < prev    next >
Encoding:
Text File  |  2000-04-06  |  1.5 KB  |  39 lines

  1. // create an Nth order infinite polynomial surface
  2. // poly { N <a,b,c...> [sturm] }
  3. // N = order of poly, M terms where M = (N+1)*(N+2)*(N+3)/6
  4. poly
  5. {
  6.   5, // order of polynomial (2...7)
  7.   <
  8. // x^5,        x^4y,       x^4z,       x^4,
  9.    0,          0,          0,          0,
  10. // x^3y^2,     x^3yz,      x^3y,       x^3z^2,
  11.    0,          0,          0,          0,
  12. // x^3z,       x^3,        x^2y^3,     x^2y^2z,
  13.    0,          0,          0,          0,
  14. // x^2y^2,     x^2yz^2,    x^2yz,      x^2y,
  15.    0,          0,          0,          0,
  16. // x^2z^3,     x^2z^2,     x^2z,       x^2,
  17.    0,          0,          0,          0,
  18. // xy^4,       xy^3z,      xy^3,       xy^2z^2,
  19.    0,          0,          0,          0,
  20. // xy^2z,      xy^2,       xyz^3,      xyz^2,
  21.    0,          0,          0,          0,
  22. // xyz,        xy,         xz^4,       xz^3,
  23.    0,          0,          0,          0,
  24. // xz^2,       xz,         x,          y^5,
  25.    0,          0,          0,          0,
  26. // y^4z,       y^4,        y^3z^2,     y^3z,
  27.    0,          0,          0,          0,
  28. // y^3,        y^2z^3,     y^2z^2,     y^2z,
  29.    0,          0,          0,          0,
  30. // y^2,        yz^4,       yz^3,       yz^2,
  31.    0,          0,          0,          0,
  32. // yz,         y,          z^5,        z^4,
  33.    0,          0,          0,          0,
  34. // z^3,        z^2,        z,          C           
  35.    0,          0,          0,          0
  36.   >
  37.   sturm // optional, slower but reduces speckles
  38. }
  39.